//
//  ProductDetailCell4.m
//  FloatClouds
//
//  Created by 黄威 on 16/9/10.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "ProductDetailCell4.h"

@implementation ProductDetailCell4


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.name = [[BaseLabel alloc]init];
        self.name.font = [UIFont fontWithName:@"Helvetica" size:19];
        self.name.textColor = [UIColor colorWithRed:18.0 / 255 green:86.0 / 255 blue:138.0 / 255 alpha:1];
        [self.contentView addSubview:self.name];
        
        self.time = [[BaseLabel alloc]init];
       
        self.time.font = [UIFont fontWithName:@"Helvetica" size:15];
        [self.contentView addSubview:self.time];
  
        self.content = [[BaseLabel alloc]init];
        self.content.textColor = [UIColor grayColor];
        self.content.numberOfLines = 0;
        self.content.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.content];
        
        self.price = [[BaseLabel alloc]init];
        self.price.text = @"当地售价:";
        self.price.font = [UIFont fontWithName:@"Helvetica" size:15];
        [self.contentView addSubview:self.price];
        
        self.priceInput = [[BaseLabel alloc]init];
       
        self.priceInput.font = [UIFont fontWithName:@"Helvetica" size:15];
        [self.contentView addSubview:self.priceInput];
        
        self.perPacking = [[BaseLabel alloc]init];
        
        self.perPacking.text = @"元 / 包";
        self.perPacking.font = [UIFont fontWithName:@"Helvetica" size:15];
        [self.contentView addSubview:self.perPacking];
        
        self.landname = [[BaseLabel alloc]init];
        self.landname.font = [UIFont fontWithName:@"Helvetica" size:15];
        [self.contentView addSubview:self.landname];
        
      
        
       
    }
    return self;


}





- (void)layoutSubviews{

    self.name.frame = CGRectMake(10, 10, self.bounds.size.width *0.5, 30);
    self.time.frame = CGRectMake(self.bounds.size.width *0.7, 10, self.bounds.size.width * 0.3, 30);
    self.content.frame = CGRectMake(10, 50 , self.widthAndHeight.width , self.widthAndHeight.height);
    self.price.frame = CGRectMake(10, 60 + self.widthAndHeight.height, self.bounds.size.width * 0.25, 30);
    self.priceInput.frame = CGRectMake(10 + self.bounds.size.width *0.2, 60 + self.widthAndHeight.height, self.bounds.size.width * 0.15, 30);
    self.perPacking.frame = CGRectMake(10 + self.bounds.size.width * 0.34,60 + self.widthAndHeight.height, self.bounds.size.width * 0.15, 30);
   self.landname.frame = CGRectMake(self.bounds.size.width * 0.7, 60 + self.widthAndHeight.height, self.bounds.size.width *0.2, 30);
    

}


@end
